<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 27662
  Date: 2024/8/8
  Time: 13:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>addBook</title>
</head>
<body>
<center>
<h1>新增页面</h1>
<form action="${pageContext.request.contextPath}/add" method="post" enctype="multipart/form-data">
    书名:
    <input type="text" name="bname"><br/>
    类别:
    <select name="cid">
        <c:forEach var="category" items="${categoryList}">
            <option value="${category.cid}">${category.cname}</option>
        </c:forEach>
    </select><br/>
    作者:
    <input type="text" name="author"><br/>
    总页数:
    <input type="text" name="num"><br/>
    图片:
    <input type="file" name="file1"><br/>
    价格:
    <input type="text" name="price"><br/>
    <input type="submit" value="添加">
</form>
</center>
</body>
</html>
